﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DetailCompany.aspx.cs" Inherits="DetailCompany" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="<%= ResolveUrl("~/Scripts/jquery-1.4.3.min.js")%>" type="text/javascript"></script>
    <script src="<%= ResolveUrl("~/Wheel/swfobject.js")%>" type="text/javascript"></script>
    <style type="text/css">
        *{margin:0; padding:0;}
    </style>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            var layout_w = jQuery(document).height();
            var nav_header_w = jQuery("#nav-header").height();
            var iframe_h = layout_w - nav_header_w;
            jQuery("#web-iframe").css({ height: iframe_h + "px" });
        });
    </script>
    <script type="text/javascript">
        var currentUrl = window.location.hostname;
        window.onload = function () {
            var so = new SWFObject('<%= ResolveUrl("~/Wheel/wof_eng.swf")%>', 'swft', 500, 260, "9", "#e8e6e6");
            so.addParam("name", "swft");
            so.addParam("id", "swft");
            so.addParam("menu", "false");
            so.addParam("quality", "hight");
            if (navigator.appName == "Microsoft Internet Explorer" || (navigator.userAgent.indexOf("Safari") != -1)) {
                so.addParam("wmode", "opaque");
            }
            so.addParam("allowScriptAccess", "always");
            so.addParam("salign", "TL")
            so.addParam("scale", "noscale");
            so.addVariable("language", "vn");
            so.addVariable("spin_delay", "7");
            // These two variables should be populated by session variables
            so.addVariable("member", "nguoicungkho"); //displayname of user
            so.addVariable("member_id", "nguoicungkho");
            so.addVariable("advertizer_name", "Advertizer One"); // product code
            so.addVariable("advertizer_id", "A1"); // productID
            so.addVariable("can_spin", "0");
            so.addVariable("spin_auto", "false");
            so.addVariable("spin", 'php/wof2.aspx');
            so.addVariable("results", 'php/wof_result.aspx');
            //so.addVariable("rootURL", "http://localhost/ryan/");
            //so.addVariable("rootURL", "http://www.papergrave.com/ryan/");
            //so.addVariable("rootURL", '<%= ResolveUrl("~/User/DetailCompany.html")%>');
            so.addVariable("rootURL", "http://" + currentUrl + ":4943/up1vn-commercial/Wheel/");
            so.write('flash_content');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:0; padding:0; background: #0577B6;">
        <div style="width:750px; margin:0 auto; text-align:center">
            <div id="flash_content" style="width:400px; float:left"><img src="<%= ResolveUrl("~/images/loader.gif")%>" alt="Loading" /></div>
            <div style="width:230px; float:right;">
                <a href="<%= ResolveUrl("~/Index.html")%>">
                    <img src="<%= ResolveUrl("~/images/logo.jpg")%>" alt="" style="margin:10px 0 0 18px" class="imageCache" title="Trở về trang chủ" />
                </a>
            </div>
        </div>
    </div>
    <asp:Literal ID="ltrIframe" runat="server"></asp:Literal>
    </form>
</body>
</html>
